package com.app.oral.dao

import com.app.oral.model.ExamPaper
import com.app.oral.model.PaperType
import org.apache.ibatis.annotations.Mapper

@Mapper
interface ExamPaperMapper {
    fun findAll(): List<ExamPaper>
    fun findByTargetGrade(targetGrade: Int): List<ExamPaper>
    fun findById(id: Long): ExamPaper?
    fun insert(examPaper: ExamPaper): Int
    fun update(examPaper: ExamPaper): Int
    fun deleteById(id: Long): Int
    fun countByTargetGrade(targetGrade: Int): Int
    fun findByPaperType(paperType: PaperType): List<ExamPaper>
}